package com.alks.function.mapper.finance.fincons;

import com.alks.function.data.dto.finance.fincons.LotNoDto;
import com.alks.function.data.dto.finance.fincons.LotNoPriceDetailDto;
import com.alks.function.data.request.finance.fincons.OrderUnitPriceRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderUnitPriceMapper {

    /*指令查询*/
    List<LotNoDto> getLotNoList(@Param("companyId") String companyId, @Param("request") OrderUnitPriceRequest request);

    /*指令查询:用视图*/
    List<LotNoDto> getLotNoListByView(@Param("companyId") String companyId, @Param("request") OrderUnitPriceRequest request);

    /*指令单价明细查询*/
    List<LotNoPriceDetailDto> getLotNoPriceDetail(@Param("companyId") String companyId, @Param("request") OrderUnitPriceRequest request);

    /*指令单价明细查询：用视图*/
    List<LotNoPriceDetailDto> getLotNoPriceDetailByView(@Param("companyId") String companyId, @Param("request") OrderUnitPriceRequest request);

    /*获得指令单价明细的总单价和总层数：用视图*/
    LotNoPriceDetailDto getLotNoPriceDetailCountByView(@Param("companyId") String companyId, @Param("request") OrderUnitPriceRequest request);

}
